//
//  EnergySavingCardView.h
//  cocoapodText
//
//  Created by apple on 16/9/7.
//  Copyright © 2016年 apple. All rights reserved.
//

#ifndef EnergySavingCardView_h
#define EnergySavingCardView_h


#endif /* EnergySavingCardView_h */
#import <UIKit/UIKit.h>

@class EnergySavingCardView;

//一个协议可以扩展另一个协议，例如FSLoginViewDelegate扩展了NSObject协议
@protocol EnergySavingCardDelegate <NSObject>

@required //@required修饰的方法必须实现
-(void)onSetData:(EnergySavingCardView *)CardView;

@end

@interface EnergySavingCardView : UIView
//标识单位
@property(nonatomic,strong)UILabel *EnergyCardUnitLabel;
//标识数量
@property(nonatomic,strong)UILabel *EnergyCardNumberLabel;
//标识文字
@property(nonatomic,strong)UILabel *EnergyCardTypeLabel;
//标识图片
@property(nonatomic,strong)UIImageView *EnergyCardTypeImage;

#pragma mark - 属性
#pragma mark 代理属性，同时约定作为代理的对象必须实现KCButtonDelegate协议
@property (nonatomic,retain) id<EnergySavingCardDelegate> delegate;

#pragma mark - 公共方法
-(void)setData;
-(void)setCardTypeImage:(NSString *)CardTypeImage;
-(void)setCardTypeLabel:(NSString *)CardTypeLabel;
-(void)setCardNumberLabel:(NSString *)CardNumberLabel;
-(void)setCardUnitLabel:(NSString *)CardUnitLabel;
-(void)setLabelColor:(UIColor *)labelColor;

@end